View Javadoc

1   // Runtime.java, created Thu Jul  4  4:50:03 2002 by joewhaley
2   // Copyright (C) 2001-3 John Whaley <jwhaley@alum.mit.edu>
3   // Licensed under the terms of the GNU LGPL; see COPYING for details.
4   package joeq.ClassLib.Common.java.lang;
5   
6   import jwutil.util.Assert;
7   
8   /***
9    * Runtime
10   *
11   * @author  John Whaley <jwhaley@alum.mit.edu>
12   * @version $Id: Runtime.java 1941 2004-09-30 03:37:06Z joewhaley $
13   */
14  public abstract class Runtime {
15  
16      // native method implementations.
17      private Process execInternal(java.lang.String cmdarray[],
18                                   java.lang.String envp[],
19                                   java.lang.String path) 
20          throws java.io.IOException {
21          Assert.TODO();
22          return null;
23      }
24  
25      public long freeMemory() {
26          // TODO
27          return 0L;
28      }
29      public long totalMemory() {
30          // TODO
31          return 0L;
32      }
33      public void gc() {
34          // TODO
35      }
36      private static void runFinalization0() {
37          try {
38              joeq.ClassLib.Common.java.lang.ref.Finalizer.runFinalization();
39          } catch (java.lang.Throwable t) {
40          }
41      }
42      public void traceInstructions(boolean on) {
43          // TODO
44      }
45      public void traceMethodCalls(boolean on) {
46          // TODO
47      }
48      
49  }